package com.nclg.exam.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

@Data
public class UpdateUserDto {

    private Long uId;

    @NotEmpty(message = "姓名不能为空")
    private String uName;

    @NotEmpty(message = "性别不能为空")
    private String uSex;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date uBirthday;

    @NotEmpty(message = "头像不能为空")
    private String uIco;

    @NotEmpty(message = "手机号不能为空")
    private String uPhone;

    @NotEmpty(message = "邮箱不能为空")
    private String uEmail;
}
